package com.chushouya.order.dto.api.clerk.action;

import com.chushouya.order.constants.ClerkOrderActionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel("业务员修改订单信息")
@Data
public class ClerkEditOrderAction extends ClerkBaseAction {

    public ClerkEditOrderAction() {
        super.setOrderAction(ClerkOrderActionEnum.CLERK_EDIT);
    }

    @ApiModelProperty("订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty("预约上门开始时间")
    @NotNull(message = "预约上门开始时间不能为空")
    private Date appointStartTime;

    @ApiModelProperty("预约上门截止时间")
    @NotNull(message = "预约上门截止时间不能为空")
    private Date appointEndTime;

    @ApiModelProperty("备注")
    private String remark;
}
